import request from '@/utils/request'


// 团委组织人员列表
export function organizeUserList(query) {
    return request({
        url: '/league/org/user/list',
        method: 'get',
        params: query
    })
}

// 团委组织人员添加
export function addOrganizeUser(query) {
    return request({
        url: '/league/org/user',
        method: 'post',
        data: query
    })
}


// 团委组织人员修改
export function editOrganizeUser(query) {
    return request({
        url: '/league/org/user',
        method: 'put',
        data: query
    })
}


// 团委组织人员删除
export function delOrganizeUser(ids) {
    return request({
        url: '/league/org/user/' + ids,
        method: 'delete'
    })
}

// 团委组织人员下载模板
export function organizeUserTemplate(query) {
    return request({
      url: '/league/org/user/downloadTemplate',
      method: 'get',
      responseType: 'blob',
      params: query
    })
  }



// 社团组织人员列表
export function clubOrganizeUserList(query) {
    return request({
        url: '/league/union/user/list',
        method: 'get',
        params: query
    })
}

// 社团组织人员添加
export function addClubOrganizeUser(query) {
    return request({
        url: '/league/union/user',
        method: 'post',
        data: query
    })
}


// 社团组织人员修改
export function editClubOrganizeUser(query) {
    return request({
        url: '/league/union/user',
        method: 'put',
        data: query
    })
}


// 社团组织人员删除
export function delClubOrganizeUser(ids) {
    return request({
        url: '/league/union/user/' + ids,
        method: 'delete'
    })
}

// 社团组织人员下载模板
export function cluborganizeUserTemplate(query) {
    return request({
      url: '/league/union/user/downloadTemplate',
      method: 'get',
      responseType: 'blob',
      params: query
    })
  }

